﻿component persistent="true" accessors="true" {
    property name="id" generator="native" ormtype="integer" fieldtype="id";
    property name="age" ormtype="integer" length="11";
    property name="loginname" ormtype="string" length="50";
    property name="name" ormtype="string" length="50";
    property name="pwd" ormtype="string" length="50";
    property name="photo" ormtype="string" length="200";
    property name="sex" ormtype="integer" length="1";
    property name="created" ormtype="timestamp";
    property name="edited" ormtype="timestamp";
    
	public string function getSexName(){
		
		var sexName = "";
		if (getSex() == 1){
			sexName = "男";
		}else{
			sexName = "女";
		}
		return sexName;
		
	}

 }